import request from './request'

export function saveCharacter(data:any) {
    return request({
        url: '/character',
        method: 'post',
        data
    })
}

export function uploadExcel(data:any, id:number) {
    return request({
        url: '/character/upload/'+id,
        method: 'post',
        data
    })
}

export function getCharacterList() {
    return request({
        url: '/character/list',
        method: 'get'
    })
}

export function getCharacterDetail(id:number) {
    return request({
        url: '/character/' + id,
        method: 'get'
    })
}